package com.solrtest.service;

import com.solrtest.doman.Product;
import com.solrtest.doman.Shop;
import org.apache.solr.client.solrj.response.UpdateResponse;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface TemplateProductService {

    void add(Product product);

    void edit(Product product);

    void del(String id);

    List<Product> queryByIds(List<String> ids);

    Page<Product> queryAll();

    List<Product> query(Product product);

    UpdateResponse addShopInfo();

    List<Shop> getByGps(String gps);

    //测试读取耗时
    Map<String,Object> readTime();
}
